import Vue from 'vue'
import Router from 'vue-router'
import PhotoList from '@/components/PhotoList'
import PhotoInfo from '@/components/PhotoInfo'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', redirect: '/home/photoList'},
    {path: '/home/photoList', component: PhotoList},
    {path: '/home/photoInfo/:id', component: PhotoInfo}
  ]
})
